package com.czt.mail.limit;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author czt
 * @version 1.0
 * {@desc} 限流配置类
 * @date 2024/8/22 13:40
 */
@Configuration
public class LimiterConfig {

    @Bean
    public CounterLimiter counterLimiter() {
        return new CounterLimiter(10000, 5000);
    }
}
